package com.rpc.client;

/**
 * @Description
 * @Author 顾志杰
 * @Date 2022/3/1 16:32
 */
public class RpcClient {

  private String serverAddresss;

  private long timeOut;

  public void initClient(String serverAddresss,long timeOut){
    this.serverAddresss = serverAddresss;
    this.timeOut = timeOut;
    connect();
  }

  private void connect(){
    RpcConnectManager.getInstance().connect(serverAddresss);
  }

  public void stop(){
    RpcConnectManager.getInstance().stop();
  }
}
